package com.example.userdemo.kafka.event;


import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Component
public class EventConsumer {
//    @KafkaListener(topics = {"test","test2"}, groupId = "defaultGroup")
    public void consume(String message) {
        System.out.println("Received message: " + message);
    }
}
